package com.projectnection.server.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.Key;

public class LiveFeed implements Serializable, Comparable<LiveFeed> {

	@Id
	private Long liveFeedID;

	private Key<Entity> entityIDFrom;

	private Key<Entity> entityIDTo;

	private Date liveFeedDate;

	private String liveFeedDescription;

	public LiveFeed() {
	}

	public Long getLiveFeedID() {
		return liveFeedID;
	}

	public void setLiveFeedID(Long liveFeedID) {
		this.liveFeedID = liveFeedID;
	}

	public Key<Entity> getEntityIDFrom() {
		return entityIDFrom;
	}

	public void setEntityIDFrom(Key<Entity> entityIDFrom) {
		this.entityIDFrom = entityIDFrom;
	}

	public Key<Entity> getEntityIDTo() {
		return entityIDTo;
	}

	public void setEntityIDTo(Key<Entity> entityIDTo) {
		this.entityIDTo = entityIDTo;
	}

	public Date getLiveFeedDate() {
		return liveFeedDate;
	}

	public void setLiveFeedDate(Date liveFeedDate) {
		this.liveFeedDate = liveFeedDate;
	}

	public String getLiveFeedDescription() {
		return liveFeedDescription;
	}

	public void setLiveFeedDescription(String liveFeedDescription) {
		this.liveFeedDescription = liveFeedDescription;
	}

	@Override
	public int compareTo(LiveFeed that) {

		return that.liveFeedDate.compareTo(this.liveFeedDate);
	}

}
